package com.homework7;

public class Teacher extends Person {
    private double baseSalary;
    private int times;

    public Teacher(double baseSalary, int times) {
        this.baseSalary = baseSalary;
        this.times = times;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }

    public void pay(){
        System.out.println("老师工资是："+(getBaseSalary()+getTimes()*45));
    }
}
